package com.stud.system.request.workflow;

import com.stud.system.request.WorkflowRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author Stud
 * @title XXXXX
 * @desription XXXXX
 * @data 2022-11-11 17:24
 */
@Data
@Schema(description = "流程审批-驳回")
public class WorkflowRejectRequest extends WorkflowRequest {
    @NotNull(message = "流程ID不能为空")
    @Schema(description = "流程ID")
    private Long workflowId;

    @Schema(description = "流程任务ID(如果是并行流程,则需要传入这个参数才知道需要审批的是哪一个任务)")
    private Long taskId;

    @NotBlank(message = "流程审批意见不能为空")
    @Schema(description = "流程审批意见")
    private String taskInfo;

    @Schema(description = "流程审批附件")
    private MultipartFile[] attachments;
}
